package titt.server.func.util;

import titt.head.HeadFactory;
import titt.head.request.MethodHead;
import titt.head.response.ResponseHead;
import titt.io.socket.TITTSocket;
import titt.key.TITTKey;
import titt.server.func.TITTFunction;
import titt.server.os.ObjectServer;

public class DoNothingFunction implements TITTFunction {

	@Override
	public String getMethodName() {
		return "nothing";
	}

	@Override
	public void handle(TITTKey key, MethodHead head, TITTSocket ts,
			ObjectServer os) throws Exception {
		
		ts.getHeadWriter().writeHead(new ResponseHead(200, HeadFactory.EMPTY));
		ts.close();
	}

}
